package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-23
 */
@Entity
@Table(name = "t_sys_step")
public class TSysStep implements Serializable {
    private Long id;
    private String name;
    private Integer order;
    private Integer sfqy;
    private Integer type;

    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "order")
    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TSysStep tSysStep = (TSysStep) o;
        return Objects.equals(id, tSysStep.id) &&
                Objects.equals(name, tSysStep.name) &&
                Objects.equals(order, tSysStep.order) &&
                Objects.equals(sfqy, tSysStep.sfqy) &&
                Objects.equals(type, tSysStep.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, order, sfqy, type);
    }
}
